-- GENERATED SPELL FOR [Gargantuan Abyssal] --


function spell0_20898(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(38855,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20898', 0, 1)
end

function spell1_20898(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(38901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20898', 0, 1)
end

function spell2_20898(pUnit, Event) --@Meteor,n/a--
pUnit:FullCastSpellOnTarget(36837,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20898', 3000, 1)
end

function spell3_20898(pUnit, Event) --@Meteor,n/a--
pUnit:FullCastSpellOnTarget(38903,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20898', 2000, 1)
end

function Sorts_20898(pUnit, Event)
local choix_sorts_20898 = math.random(0, 3)
if choix_sorts_20898 == 0 then
pUnit:RegisterEvent('spell0_20898', 1, 1)
end
if choix_sorts_20898 == 1 then
pUnit:RegisterEvent('spell1_20898', 1, 1)
end
if choix_sorts_20898 == 2 then
pUnit:RegisterEvent('spell2_20898', 1, 1)
end
if choix_sorts_20898 == 3 then
pUnit:RegisterEvent('spell3_20898', 1, 1)
end
end

function mob20898_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20898', math.random(1500, 3000), 1)
end

function mob20898_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20898_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20898_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20898, 1, 'mob20898_Action')
RegisterUnitEvent(20898, 2, 'mob20898_Leave')
RegisterUnitEvent(20898, 3, 'mob20898_Kill')
RegisterUnitEvent(20898, 4, 'mob20898_Die')
